how to evaluate a trigonometric function using period as an aide